﻿using HelperFromTheSkeleton.ExtendMethod;
using Microsoft.Extensions.DependencyInjection;

namespace HelperFromTheSkeleton.WebSocketCore
{
    public static class WebSocektApplicationDI
    {
        public static void AddWebSocektServer(this IServiceCollection serviceCollection, string handleAssemblyName,string handleSuffix)
        {
            serviceCollection.AddAssembly(handleAssemblyName, handleSuffix);
            serviceCollection.AddSingleton<WebSocketEventBus>();
        }
    }
}
